package com.mm.learn.juc;

import lombok.extern.slf4j.Slf4j;

/**
 * @author wdx
 * @create 2021-10-08 13:45
 */
@Slf4j
public class ThreadTest {

    public static void main(String[] args) {

        new Thread(() -> {
            while (true) {
                log.debug("running");
            }
        }, "t1").start();

        new Thread(() -> {
            while (true) {
                log.debug("running");
            }
        }, "t2").start();
    }
}
